@{
    Layout = null;

}
@using System.Security

<script src="~/Scripts/js/TopNav_koViewModel.js"></script>
<script>
    var tnVM = new TopNavViewModel();
    ko.applyBindings(tnVM);
</script>
<nav class="nav-collapse collapse">
    <ul class="topnav nav pull-right">
        <li><a href="./">Home</a></li>                            
		@if (Request.IsAuthenticated)
  {

     <li><a href="/" data-bind="click: TopNavLogging">Logging<span class="sub-tital"></span></a></li>
            @*<li><a href="/" data-bind="click: TopNavLogcategory">Log<span class="sub-tital">Category</span></a></li>*@
         @*<li><a data-bind="click: TopNavAdmin"  ><span>Admin</span></a></li>
      
      *@<li><a href="#" class="dropdown-toggle" data-toggle="dropdown">Admin <b class="logincaret caret"></b></a>
            <ul class="login-pop dropdown-menu">
                <li>
                    <a data-bind="click: TopNavTenants"  ><span>Tenants</span></a>
                </li>
                <li>
                    <a data-bind="click: TopNavApplication"  ><span>Applications</span></a>
                </li>
                <li>
                    <a data-bind="click: TopNavLogcategory"  ><span>Log Category</span></a>
                </li>
                
            </ul>
      </li>
      
         <li><a href="/" id="logout" data-bind="click: TopNavLogout">Logout<span class="sub-tital">@(Membership.GetUser().UserName)</span></a></li>

  }
  else
  {

       <li><a href="/" data-bind="click: TopNavRegisters">Register<span class="sub-tital">for account</span></a></li>
            <li class="dropdown"><a href="/" id="login" data-bind="click: TopNavLogin">Login</a></li>

  }
    </ul>
</nav>


			
